<!DOCTYPE html>
<html lang="zh-CN">
<head>
  <meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=2">
<meta name="theme-color" content="#222">
<meta name="generator" content="Hexo 5.2.0">
  <link rel="apple-touch-icon" sizes="180x180" href="/images/favicon.ico">
  <link rel="icon" type="image/png" sizes="32x32" href="/images/favicon.ico">
  <link rel="icon" type="image/png" sizes="16x16" href="/images/favicon.ico">
  <link rel="mask-icon" href="/images/favicon.ico" color="#222">

<link rel="stylesheet" href="/css/main.css">


<link rel="stylesheet" href="/lib/font-awesome/css/all.min.css">

<script id="hexo-configurations">
    var NexT = window.NexT || {};
    var CONFIG = {"hostname":"wwwttttj.gitee.io","root":"/","scheme":"Gemini","version":"7.8.0","exturl":false,"sidebar":{"position":"left","display":"post","padding":18,"offset":12,"onmobile":false},"copycode":{"enable":false,"show_result":false,"style":null},"back2top":{"enable":true,"sidebar":false,"scrollpercent":false},"bookmark":{"enable":false,"color":"#222","save":"auto"},"fancybox":false,"mediumzoom":false,"lazyload":false,"pangu":false,"comments":{"style":"tabs","active":null,"storage":true,"lazyload":false,"nav":null},"algolia":{"hits":{"per_page":10},"labels":{"input_placeholder":"Search for Posts","hits_empty":"We didn't find any results for the search: ${query}","hits_stats":"${hits} results found in ${time} ms"}},"localsearch":{"enable":false,"trigger":"auto","top_n_per_article":1,"unescape":false,"preload":false},"motion":{"enable":true,"async":false,"transition":{"post_block":"fadeIn","post_header":"slideDownIn","post_body":"slideDownIn","coll_header":"slideLeftIn","sidebar":"slideUpIn"}}};
  </script>

  <meta name="description" content="IntelliJ Idea 常用快捷键列表 Alt+回车 导入包,自动修正 Ctrl+N 查找类 Ctrl+Shift+N 查找文件 Ctrl+Alt+L 格式化代码 Ctrl+Alt+O 优化导入的类和包 Alt+Insert 生成代码(如get,set方法,构造函数等) Ctrl+E或者Alt+Shift+C 最近更改的代码 Ctrl+R 替换文本 Ctrl+F 查找文本">
<meta property="og:type" content="article">
<meta property="og:title" content="intellij快捷键列表">
<meta property="og:url" content="https://wwwttttj.gitee.io/2020/09/18/%E5%BF%AB%E6%8D%B7%E9%94%AE%E5%88%97%E8%A1%A8/index.html">
<meta property="og:site_name" content="wwwblog">
<meta property="og:description" content="IntelliJ Idea 常用快捷键列表 Alt+回车 导入包,自动修正 Ctrl+N 查找类 Ctrl+Shift+N 查找文件 Ctrl+Alt+L 格式化代码 Ctrl+Alt+O 优化导入的类和包 Alt+Insert 生成代码(如get,set方法,构造函数等) Ctrl+E或者Alt+Shift+C 最近更改的代码 Ctrl+R 替换文本 Ctrl+F 查找文本">
<meta property="og:locale" content="zh_CN">
<meta property="article:published_time" content="2020-09-18T07:37:48.000Z">
<meta property="article:modified_time" content="2020-09-23T06:57:44.012Z">
<meta property="article:author" content="wwwttttj">
<meta name="twitter:card" content="summary">

<link rel="canonical" href="https://wwwttttj.gitee.io/2020/09/18/%E5%BF%AB%E6%8D%B7%E9%94%AE%E5%88%97%E8%A1%A8/">


<script id="page-configurations">
  // https://hexo.io/docs/variables.html
  CONFIG.page = {
    sidebar: "",
    isHome : false,
    isPost : true,
    lang   : 'zh-CN'
  };
</script>

  <title>intellij快捷键列表 | wwwblog</title>
  






  <noscript>
  <style>
  .use-motion .brand,
  .use-motion .menu-item,
  .sidebar-inner,
  .use-motion .post-block,
  .use-motion .pagination,
  .use-motion .comments,
  .use-motion .post-header,
  .use-motion .post-body,
  .use-motion .collection-header { opacity: initial; }

  .use-motion .site-title,
  .use-motion .site-subtitle {
    opacity: initial;
    top: initial;
  }

  .use-motion .logo-line-before i { left: initial; }
  .use-motion .logo-line-after i { right: initial; }
  </style>
</noscript>

<link rel="alternate" href="/atom.xml" title="wwwblog" type="application/atom+xml">
</head>

<body itemscope itemtype="http://schema.org/WebPage">
  <div class="container use-motion">
    <div class="headband"></div>

    <header class="header" itemscope itemtype="http://schema.org/WPHeader">
      <div class="header-inner"><div class="site-brand-container">
  <div class="site-nav-toggle">
    <div class="toggle" aria-label="切换导航栏">
      <span class="toggle-line toggle-line-first"></span>
      <span class="toggle-line toggle-line-middle"></span>
      <span class="toggle-line toggle-line-last"></span>
    </div>
  </div>

  <div class="site-meta">

    <a href="/" class="brand" rel="start">
      <span class="logo-line-before"><i></i></span>
      <h1 class="site-title">wwwblog</h1>
      <span class="logo-line-after"><i></i></span>
    </a>
  </div>

  <div class="site-nav-right">
    <div class="toggle popup-trigger">
    </div>
  </div>
</div>




<nav class="site-nav">
  <ul id="menu" class="main-menu menu">
        <li class="menu-item menu-item-home">

    <a href="/" rel="section"><i class="fa fa-home fa-fw"></i>首页</a>

  </li>
        <li class="menu-item menu-item-archives">

    <a href="/archives/" rel="section"><i class="fa fa-archive fa-fw"></i>归档</a>

  </li>
        <li class="menu-item menu-item-commonweal">

    <a href="/404/" rel="section"><i class="fa fa-heartbeat fa-fw"></i>公益 404</a>

  </li>
  </ul>
</nav>




</div>
    </header>

    
  <div class="back-to-top">
    <i class="fa fa-arrow-up"></i>
    <span>0%</span>
  </div>


    <main class="main">
      <div class="main-inner">
        <div class="content-wrap">
          

          <div class="content post posts-expand">
            

    
  
  
  <article itemscope itemtype="http://schema.org/Article" class="post-block" lang="zh-CN">
    <link itemprop="mainEntityOfPage" href="https://wwwttttj.gitee.io/2020/09/18/%E5%BF%AB%E6%8D%B7%E9%94%AE%E5%88%97%E8%A1%A8/">

    <span hidden itemprop="author" itemscope itemtype="http://schema.org/Person">
      <meta itemprop="image" content="/images/avatar.gif">
      <meta itemprop="name" content="wwwttttj">
      <meta itemprop="description" content="">
    </span>

    <span hidden itemprop="publisher" itemscope itemtype="http://schema.org/Organization">
      <meta itemprop="name" content="wwwblog">
    </span>
      <header class="post-header">
        <h1 class="post-title" itemprop="name headline">
          intellij快捷键列表
        </h1>

        <div class="post-meta">
            <span class="post-meta-item">
              <span class="post-meta-item-icon">
                <i class="far fa-calendar"></i>
              </span>
              <span class="post-meta-item-text">发表于</span>

              <time title="创建时间：2020-09-18 15:37:48" itemprop="dateCreated datePublished" datetime="2020-09-18T15:37:48+08:00">2020-09-18</time>
            </span>
              <span class="post-meta-item">
                <span class="post-meta-item-icon">
                  <i class="far fa-calendar-check"></i>
                </span>
                <span class="post-meta-item-text">更新于</span>
                <time title="修改时间：2020-09-23 14:57:44" itemprop="dateModified" datetime="2020-09-23T14:57:44+08:00">2020-09-23</time>
              </span>

          

        </div>
      </header>

    
    
    
    <div class="post-body" itemprop="articleBody">

      
        <p>IntelliJ Idea 常用快捷键列表</p>
<p>Alt+回车 导入包,自动修正</p>
<p>Ctrl+N 查找类</p>
<p>Ctrl+Shift+N 查找文件</p>
<p>Ctrl+Alt+L 格式化代码</p>
<p>Ctrl+Alt+O 优化导入的类和包</p>
<p>Alt+Insert 生成代码(如get,set方法,构造函数等)</p>
<p>Ctrl+E或者Alt+Shift+C 最近更改的代码</p>
<p>Ctrl+R 替换文本</p>
<p>Ctrl+F 查找文本</p>
<a id="more"></a>

<p>Ctrl+Shift+Space 自动补全代码</p>
<p>Ctrl+空格 代码提示</p>
<p>Ctrl+Alt+Space 类名或接口名提示</p>
<p>Ctrl+P 方法参数提示</p>
<p>Ctrl+Shift+Alt+N 查找类中的方法或变量</p>
<p>Alt+Shift+C 对比最近修改的代码</p>
<p>Shift+F6 重构-重命名</p>
<p>Ctrl+Shift+先上键</p>
<p>Ctrl+X 删除行</p>
<p>Ctrl+D 复制行</p>
<p>Ctrl+/ 或 Ctrl+Shift+/ 注释（// 或者/…/ ）</p>
<p>Ctrl+J 自动代码</p>
<p>Ctrl+E 最近打开的文件</p>
<p>Ctrl+H 显示类结构图</p>
<p>Ctrl+Q 显示注释文档</p>
<p>Alt+F1 查找代码所在位置</p>
<p>Alt+1 快速打开或隐藏工程面板</p>
<p>Ctrl+Alt+ left/right 返回至上次浏览的位置</p>
<p>Alt+ left/right 切换代码视图</p>
<p>Alt+ Up/Down 在方法间快速移动定位</p>
<p>Ctrl+Shift+Up/Down 代码向上/下移动。</p>
<p>F2 或Shift+F2 高亮错误或警告快速定位</p>
<p>代码标签输入完成后，按Tab，生成代码。</p>
<p>选中文本，按Ctrl+Shift+F7 ，高亮显示所有该文本，按Esc高亮消失。</p>
<p>Ctrl+W 选中代码，连续按会有其他效果</p>
<p>选中文本，按Alt+F3 ，逐个往下查找相同文本，并高亮显示。</p>
<p>Ctrl+Up/Down 光标跳转到第一行或最后一行下</p>
<p>Ctrl+B 快速打开光标处的类或方法<br>最常用快捷键</p>
<p>1.Ctrl＋E，可以显示最近编辑的文件列表</p>
<p>2.Shift＋Click可以关闭文件</p>
<p>3.Ctrl＋[或]可以跳到大括号的开头结尾</p>
<p>4.Ctrl＋Shift＋Backspace可以跳转到上次编辑的地方</p>
<p>5.Ctrl＋F12，可以显示当前文件的结构</p>
<p>6.Ctrl＋F7可以查询当前元素在当前文件中的引用，然后按F3可以选择</p>
<p>7.Ctrl＋N，可以快速打开类</p>
<p>8.Ctrl＋Shift＋N，可以快速打开文件</p>
<p>9.Alt＋Q可以看到当前方法的声明</p>
<p>10.Ctrl＋W可以选择单词继而语句继而行继而函数</p>
<p>11.Alt＋F1可以将正在编辑的元素在各个面板中定位</p>
<p>12.Ctrl＋P，可以显示参数信息</p>
<p>13.Ctrl＋Shift＋Insert可以选择剪贴板内容并插入</p>
<p>14.Alt＋Insert可以生成构造器/Getter/Setter等</p>
<p>15.Ctrl＋Alt＋V 可以引入变量。例如把括号内的SQL赋成一个变量</p>
<p>16.Ctrl＋Alt＋T可以把代码包在一块内，例如try/catch</p>
<p>17.Alt＋Up and Alt＋Down可在方法间快速移动<br>下面的不是很有用</p>
<p>18.在一些地方按Alt＋Enter可以得到一些Intention Action，例如将”==”改为”equals()”</p>
<p>19.Ctrl＋Shift＋Alt＋N可以快速打开符号</p>
<p>20.Ctrl＋Shift＋Space在很多时候都能够给出Smart提示</p>
<p>21.Alt＋F3可以快速寻找</p>
<p>22.Ctrl＋/和Ctrl＋Shift＋/可以注释代码</p>
<p>23.Ctrl＋Alt＋B可以跳转到抽象方法的实现</p>
<p>24.Ctrl＋O可以选择父类的方法进行重写</p>
<p>25.Ctrl＋Q可以看JavaDoc</p>
<p>26.Ctrl＋Alt＋Space是类名自动完成</p>
<p>27.快速打开类/文件/符号时，可以使用通配符，也可以使用缩写</p>
<p>28.Live Templates! Ctrl＋J</p>
<p>29.Ctrl＋Shift＋F7可以高亮当前元素在当前文件中的使用</p>
<p>30.Ctrl＋Alt＋Up /Ctrl＋Alt＋Down可以快速跳转搜索结果</p>
<p>31.Ctrl＋Shift＋J可以整合两行</p>
<p>32.Alt＋F8是计算变量值<br>Intellij IDEA配置优化</p>
<ol>
<li>优化JVM参数</li>
</ol>
<p>　　修改 IntelliJ IDEA 2016.1.2/bin/idea.exe.vmoptions【记得备份】文件，如果是x64系统，修改idea64.exe.vmoptions文件中的参数，具体参数如下：</p>
<p>-Xms512m</p>
<p>-Xmx750m</p>
<p>-Xmn264m</p>
<p>-XX:MaxPermSize=350m</p>
<p>-XX:PermSize=128m</p>
<p>-XX:ReservedCodeCacheSize=240m</p>
<p>-Xverify:none</p>
<p>-Xnoclassgc</p>
<p>-XX:+UseParNewGC</p>
<p>-XX:+UseConcMarkSweepGC</p>
<p>-XX:SoftRefLRUPolicyMSPerMB=50</p>
<p>-ea</p>
<p>-server</p>
<p>-Dsun.io.useCanonCaches=false</p>
<p>-Dsun.awt.keepWorkingSetOnMinimize=true</p>
<p>-Djava.net.preferIPv4Stack=true</p>
<p>-XX:+HeapDumpOnOutOfMemoryError</p>
<p>-XX:-OmitStackTraceInFastThrow</p>
<p>注：-Xms512m 设置初时的内存大小，提高Java程序的启动速度</p>
<p>　　　　-Xmx750m 设置最大内存数，提高该值，可以减少内存Garage收集的频率，提高程序性能</p>
<p>　　　　-Xverify：none 关闭Java字节码验证，从而加快了类装入的速度，并使得在仅为验证目的而启动的过程中无需装入类，缩短了启动时间</p>
<p>　　　　-XX:+UseParNewGC 使用并行收集算法</p>
<p>　　　　-server 控制内存garage方式，这样你无需在花一到两分钟等待内存garage的收集</p>
<p>　　　　-Dsun.awt.keepWorkingSetOnMinimize=true 可以让IDEA最小化到任务栏时依然保持以占有的内存，当你重新回到IDEA，能够被快速显示，而不是由灰白的界面逐渐显现整个界面，加快回复到原界面的速度。<br>2. 基本常用设置</p>
<p>　　　　<br>显示行号：File -&gt; Settings -&gt; Editor -&gt; General -&gt; Appearance 标签项，勾选Show line numbers<br>　　　　<br>让光标不随意定位：File -&gt; Settings -&gt; Editor -&gt; General 标签项中的Virtual Space，去掉Allow placement of caret after end of line<br>　　　　<br>用*标识编辑过的文件：File -&gt; Settings -&gt; Editor -&gt; General -&gt; Editor Tabs 标签项中，勾选Mark modified tabs with asterisk<br>　　　　<br>取消代码拼写检查：File -&gt; Settings -&gt; Editor -&gt; Inspections 去掉Spelling -&gt; Typo<br>　　　　<br>统一编码格式：File -&gt; Settings -&gt; Editor -&gt; File Encodings<br>　　　　<br>设置外观字体：File -&gt; Settings -&gt; Appearance &amp; Behavior -&gt; Appearance<br>　　　　<br>设置自动保存、自动打开上一次项目：File -&gt; Settings -&gt; Appearance &amp; Behavior -&gt; System Settings 勾选Save files automatically…<br>　　　　<br>代码自动补齐(针对小写)：File -&gt; Settings -&gt; Editor -&gt; General -&gt; Code Completion，Case sensitive completion：none<br>　　　　<br>代码字体风格：</p>

    </div>

    
    
    

      <footer class="post-footer">

        


        
    <div class="post-nav">
      <div class="post-nav-item"></div>
      <div class="post-nav-item">
    <a href="/2020/09/18/hello-hexo/" rel="next" title="hello,hexo">
      hello,hexo <i class="fa fa-chevron-right"></i>
    </a></div>
    </div>
      </footer>
    
  </article>
  
  
  



          </div>
          

<script>
  window.addEventListener('tabs:register', () => {
    let { activeClass } = CONFIG.comments;
    if (CONFIG.comments.storage) {
      activeClass = localStorage.getItem('comments_active') || activeClass;
    }
    if (activeClass) {
      let activeTab = document.querySelector(`a[href="#comment-${activeClass}"]`);
      if (activeTab) {
        activeTab.click();
      }
    }
  });
  if (CONFIG.comments.storage) {
    window.addEventListener('tabs:click', event => {
      if (!event.target.matches('.tabs-comment .tab-content .tab-pane')) return;
      let commentClass = event.target.classList[1];
      localStorage.setItem('comments_active', commentClass);
    });
  }
</script>

        </div>
          
  
  <div class="toggle sidebar-toggle">
    <span class="toggle-line toggle-line-first"></span>
    <span class="toggle-line toggle-line-middle"></span>
    <span class="toggle-line toggle-line-last"></span>
  </div>

  <aside class="sidebar">
    <div class="sidebar-inner">

      <ul class="sidebar-nav motion-element">
        <li class="sidebar-nav-toc">
          文章目录
        </li>
        <li class="sidebar-nav-overview">
          站点概览
        </li>
      </ul>

      <!--noindex-->
      <div class="post-toc-wrap sidebar-panel">
      </div>
      <!--/noindex-->

      <div class="site-overview-wrap sidebar-panel">
        <div class="site-author motion-element" itemprop="author" itemscope itemtype="http://schema.org/Person">
  <p class="site-author-name" itemprop="name">wwwttttj</p>
  <div class="site-description" itemprop="description"></div>
</div>
<div class="site-state-wrap motion-element">
  <nav class="site-state">
      <div class="site-state-item site-state-posts">
          <a href="/archives/">
        
          <span class="site-state-item-count">8</span>
          <span class="site-state-item-name">日志</span>
        </a>
      </div>
  </nav>
</div>
  <div class="links-of-author motion-element">
      <span class="links-of-author-item">
        <a href="https://gitee.com/wwwttttj" title="gitee → https:&#x2F;&#x2F;gitee.com&#x2F;wwwttttj" rel="noopener" target="_blank"><i class="fab fa-gitee fa-fw"></i>gitee</a>
      </span>
  </div>



      </div>

    </div>
  </aside>
  <div id="sidebar-dimmer"></div>


      </div>
    </main>

    <footer class="footer">
      <div class="footer-inner">
        

        

<div class="copyright">
  
  &copy; 
  <span itemprop="copyrightYear">2020</span>
  <span class="with-love">
    <i class="fa fa-heart"></i>
  </span>
  <span class="author" itemprop="copyrightHolder">wwwttttj</span>
</div>
  <div class="powered-by">由 <a href="https://hexo.io/" class="theme-link" rel="noopener" target="_blank">Hexo</a> & <a href="https://theme-next.org/" class="theme-link" rel="noopener" target="_blank">NexT.Gemini</a> 强力驱动
  </div>

        








      </div>
    </footer>
  </div>

  
  <script src="/lib/anime.min.js"></script>
  <script src="/lib/velocity/velocity.min.js"></script>
  <script src="/lib/velocity/velocity.ui.min.js"></script>

<script src="/js/utils.js"></script>

<script src="/js/motion.js"></script>


<script src="/js/schemes/pisces.js"></script>


<script src="/js/next-boot.js"></script>




  















  

  

</body>
</html>
